package com.sea.human.service.impl;

import com.sea.human.entity.PerformanceCheck;
import com.sea.human.entity.PerformanceDetail;
import com.sea.human.mapper.PerformanceCheckMapper;
import com.sea.human.mapper.PerformanceDetailMapper;
import com.sea.human.mapper.PerformanceMapper;
import com.sea.human.service.PerformanceCheckService;
import com.sea.human.service.PerformanceDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author 陈鸿飞
 */
@Service
public class PerformanceCheckServiceImpl implements PerformanceCheckService {

    @Autowired
    private PerformanceCheckMapper performanceCheckMapper;

    @Override
    public List<PerformanceCheck> findByCnd(PerformanceCheck performanceCheck) {
        return performanceCheckMapper.findByCnd(performanceCheck);
    }

    @Override
    public int save(PerformanceCheck performanceCheck) {
        return performanceCheckMapper.insert(performanceCheck);
    }

    @Override
    public PerformanceCheck findById(Integer id) {
        return performanceCheckMapper.findById(id);
    }

    @Override
    public int usave(PerformanceCheck performanceCheck) {
        return performanceCheckMapper.update(performanceCheck);
    }

    @Override
    public int delete(Integer id) {
        return performanceCheckMapper.delete(id);
    }

}
